|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.justhis.jdo.JDOContext
JDO????????????????JDO PersistenceManager ????Factory
Method Summary | |
void |
close()
Close Context's instance. |
static JDOContext |
getContext()
Obtain instance of the Context for current thread. |
javax.jdo.PersistenceManager |
getPersistenceManager()
Obtain this context's JDO persistence manager. |
static void |
initialize(java.util.Properties props)
Creates and configures PersistenceManagerFactory . |
static java.util.Properties |
loadJDOProperties()
Load the JDO configuration from the classpath. |
static void |
shutdown()
Shut down JDO engine |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static JDOContext getContext() throws PropertiesFileReadException
PropertiesFileReadException
- if read JDO properties file happen
error.public static void initialize(java.util.Properties props)
PersistenceManagerFactory
.
props
- JDO configuration parameterspublic static java.util.Properties loadJDOProperties() throws PropertiesFileReadException
PropertiesFileReadException
public static void shutdown()
public javax.jdo.PersistenceManager getPersistenceManager()
public void close()
PersistenceManager
and removes reference to this instance from current
thread.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |